package com.haixiaoke.saas.repository.service.impl;

import com.haixiaoke.saas.repository.mapper.OrderWechatRefundRecordMapper;
import com.haixiaoke.saas.repository.pojo.OrderWechatRefundRecord;
import com.haixiaoke.saas.repository.service.IOrderWechatRefundRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单退款回调记录Service业务层处理
 * 
 * @author panda
 * @date 2023-05-05
 */
@Service
public class OrderWechatRefundRecordServiceImpl implements IOrderWechatRefundRecordService {
    @Autowired
    private OrderWechatRefundRecordMapper orderWechatRefundRecordMapper;

    /**
     * 查询订单退款回调记录
     * 
     * @param id 订单退款回调记录主键
     * @return 订单退款回调记录
     */
    @Override
    public OrderWechatRefundRecord selectOrderWechatRefundRecordById(Long id) {
        return orderWechatRefundRecordMapper.selectOrderWechatRefundRecordById(id);
    }

    /**
     * 查询订单退款回调记录列表
     * 
     * @param orderWechatRefundRecord 订单退款回调记录
     * @return 订单退款回调记录
     */
    @Override
    public List<OrderWechatRefundRecord> selectOrderWechatRefundRecordList(OrderWechatRefundRecord orderWechatRefundRecord)
    {
        return orderWechatRefundRecordMapper.selectOrderWechatRefundRecordList(orderWechatRefundRecord);
    }

    /**
     * 新增订单退款回调记录
     * 
     * @param orderWechatRefundRecord 订单退款回调记录
     * @return 结果
     */
    @Override
    public int insertOrderWechatRefundRecord(OrderWechatRefundRecord orderWechatRefundRecord)
    {
        return orderWechatRefundRecordMapper.insertOrderWechatRefundRecord(orderWechatRefundRecord);
    }

    /**
     * 修改订单退款回调记录
     * 
     * @param orderWechatRefundRecord 订单退款回调记录
     * @return 结果
     */
    @Override
    public int updateOrderWechatRefundRecord(OrderWechatRefundRecord orderWechatRefundRecord)
    {
        return orderWechatRefundRecordMapper.updateOrderWechatRefundRecord(orderWechatRefundRecord);
    }

    /**
     * 批量删除订单退款回调记录
     * 
     * @param ids 需要删除的订单退款回调记录主键
     * @return 结果
     */
    @Override
    public int deleteOrderWechatRefundRecordByIds(Long[] ids)
    {
        return orderWechatRefundRecordMapper.deleteOrderWechatRefundRecordByIds(ids);
    }

    /**
     * 删除订单退款回调记录信息
     * 
     * @param id 订单退款回调记录主键
     * @return 结果
     */
    @Override
    public int deleteOrderWechatRefundRecordById(Long id)
    {
        return orderWechatRefundRecordMapper.deleteOrderWechatRefundRecordById(id);
    }
}
